package com.tansun.easycare.rule.common.rulebasebean;

/**
 * 规则结果项 生成对应的Drl规则的
 *
 * @author WanYe
 */
public class Action implements Comparable<Action> {
    /**
     * 顺序
     */
    private Integer sort = 0;
    /**
     * 临时内容
     */
    private String content = "";
    public Action() {
    }
    public Action(String content) {
    	this.content= content;
    }
    /**
     * 实现方法为提供drools的语句
     */
    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public int compareTo(Action arg0) {
        return this.getSort().compareTo(arg0.getSort());
    }
}
